<?php
/**
 * Clase FN para ApFacturaFN
 *
 * @package    
 * @subpackage ApFacturaFN
 * @author     hans
 * @version    SVN:: ApFacturaFN.class.php,v 1.1 2012-10-07 03:37:54 Hans.parra Exp $
 */

require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/common/conexion.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/po/facturas/BFN/BaseApFacturaFN.class.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/po/facturas/FN/ApFacturaLineaFN.class.php');

class ApFacturaFN extends BaseApFacturaFN
{
    
 public function getApFactura()
  {
  
    $o_ApFacturaBN = $this->selectByPK();
    
    $o_ApFacturaLineaFN = new ApFacturaLineaFN();
    $o_ApFacturaLineaFN->setFacId($this->getFacId());    
    $o_ApFacturaLinea =  $o_ApFacturaLineaFN->selectApFacturaItemDetalle();
    
    $o_ApFacturaBN->setObj_ApFacturaLinea($o_ApFacturaLinea);
    
    return $o_ApFacturaBN;
  
  }
  
}